using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace DungeonOfDespair
{
    public class GameStateLoading
        : GameState
    {
        private GameStateType m_gameStateTypeNext;

        public GameStateLoading()
        {
            m_gameStateTypeNext = GameStateType.None;
        }

        public void OnKeyDown(object objectSender, KeyEventArgs keyEventArgs)
        {
        }

        public void OnKeyUp(object objectSender, KeyEventArgs keyEventArgs)
        {
        }

        public void Update()
        {
        }

        public void Draw(Graphics graphics)
        {
            graphics.Clear(Color.Black);
            graphics.DrawImage(Properties.Resources.Loading,
                240, 200, 160, 80);
            m_gameStateTypeNext = GameStateType.Play;
        }

        public GameStateType NextState
        {
            get { return m_gameStateTypeNext; }
        }
    }
}
